package santeclair.referentiel.optique.referentiel.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

import santeclair.lunar.framework.dao.jpa.impl.FwkGenericJpaDAO;
import santeclair.referentiel.optique.config.Constant;
import santeclair.referentiel.optique.model.GeometrieVerre;
import santeclair.referentiel.optique.referentiel.dao.GeometrieVerreDAO;

@Repository
public class GeometrieVerreDAOImpl extends FwkGenericJpaDAO<GeometrieVerre> implements GeometrieVerreDAO {

    @PersistenceContext(unitName = Constant.PERSISTENCE_UNIT_NAME)
    private EntityManager entityManager;

    @Override
    public Class<GeometrieVerre> getEntityClass() {
        return GeometrieVerre.class;
    }

    @Override
    public EntityManager getEntityManager() {
        return entityManager;
    }
}
